package com.qys.livesMall.anchor.model.dto.lives.sys;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author Admin
 */
@Data
@Schema(name = "CreatePullFlowDTO", description = "创建拉流实体类")
public class CreatePullFlowDTO {

    @NotBlank
    @Schema(description = "拉流源的类型" +
            "PullLivePushLive -直播，" +
            "PullVodPushLive  -点播，" +
            "前端调用接口时给默认值PullVodPushLive")
    private String sourceType;

    @NotNull
    @Schema(description = "资源url集合（直播只能填一条数据，点播可传最多50条）")
    private String[] sourceUrls;

    @Schema(description = "推流名称（userId，前端调用接口时不用传）")
    private String streamName;

    @Schema(description = "开始时间（前端调用接口时不用传）")
    private Long startTime;

    @Schema(description = "结束时间（前端调用接口时不用传）")
    private Long endTime;


}
